﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonAvgXiaohaoChar.aspx.cs"
    Inherits="Catering.Catering_Page.ShanShiFenXi.PersonAvgXiaohaoChar" %>



<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Src="~/UCPanle/DDLTool.ascx" TagName="DDLTool" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../../Style/zhezhao.js"></script>
    <script src="../../Style/xxk.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/center.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/zhezhao.css" />
    <script type="text/javascript" src="../Tool_Reporter/js/jquery.min.js"></script>
</head>
<script type="text/javascript">
    function GetDataGroup(title, xtype, data) {
        var xcategory = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'];
        var chart;
        var banzuptions = {
            chart: { renderTo: 'container', type: "line" }, //容器ID
            title: { text: title }, //报表大标题
            xAxis: {//x轴
                type: 'sdf',
                categories: xcategory,
                gridLineWidth: 0,
                labels: { align: 'left', x: -6, y: 16 }
            },
            yAxis: [{ // left y axis
                title: {
                    text: null
                },
                labels: {
                    align: 'left',
                    x: 3,
                    y: 16,
                    formatter: function () {
                        return Highcharts.numberFormat(this.value, 0);
                    }
                },
                showFirstLabel: false
            },
                { // right y axis
                    linkedTo: 0,
                    gridLineWidth: 1,
                    opposite: true,
                    title: { text: null },
                    labels: {
                        align: 'right',
                        x: -3,
                        y: 16,
                        formatter: function () {
                            return Highcharts.numberFormat(this.value, 0);
                        }
                    },
                    showFirstLabel: true
                }],
            tooltip: {
                formatter: function () {
                    return '<b>' + this.x + '：</b><br/>' +
                        this.series.name + '：' + this.y;
                }
            },
            series: []
        };
        for (var i = 2; i < arguments.length; i++) {
            banzuptions.series[i - 2] = arguments[i];
        }
        chart = new Highcharts.Chart(banzuptions);
    }
    </script>
<body>
    <form id="form1" runat="server">
    <script type="text/javascript" src="../Tool_Reporter/js/highcharts.js"></script>
    <script type="text/javascript" src="../Tool_Reporter/js/modules/exporting.js"></script>
    <script type="text/javascript" src="../Tool_Reporter/js/highslide-full.min.js"></script>
    <script type="text/javascript" src="../Tool_Reporter/js/highslide.config.js" charset="utf-8"></script>
    <asp:ScriptManager ID="ScriptManager1" ScriptMode="Release" runat="server">
    </asp:ScriptManager>
    <div class="xxk_button1">
        <ul>
            <li id="li2_1" class="li_out"><a href="yysfx.aspx" >&nbsp;&nbsp;营养素分析</a></li>
            <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "人均分类统计查看"))
                  { %>
                <li id="li2_2" class="li_out"><a href="PersonAvgContrastLineChar.aspx" >&nbsp;&nbsp;人均分类统计</a></li>
                <%}
                    if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "人均分类对比查看"))
                  { %>
                <li id="li2_3" class="li_out"><a href="PresonAvgContrant.aspx" >&nbsp;&nbsp;人均分类对比</a></li>
                <%}
                    if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "人均消耗统计查看"))
                  { %>
                <li id="li2_4" class="li_over"><a href="PersonAvgXiaohaoChar.aspx" >&nbsp;&nbsp;人均消耗统计</a></li>
                <%}
                    if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "人均食用油汇总查看"))
                    { %>
                <li id="li2_5" class="li_out"><a href="OilPersonContrast.aspx" >&nbsp;&nbsp;人均食用油汇总</a></li>
                <%} %>
        </ul>
    </div>
    <div class="Center_Content" id="div_search" style="display: block">
        <div class="div_0207 left_width500" style="height:34px; width:998px;">
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr class="ckgl_table" style="height: 34px">
                    <td>
                        <uc1:DDLTool ID="DDLTool1" runat="server" />
                    </td>
                    <td style="width: 90px">
                        <asp:LinkButton ID="lbtn" runat="server" OnClick="lbtn_Click">开始统计</asp:LinkButton>
                    </td>
                    <td style="width: 80px">
                        <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">图形统计</asp:LinkButton>
                    </td>
                    <td width="10"></td>
                </tr>
            </table>
        </div>
    </div>
    <div class="Center_Content" id="div2_1" style="display: block">
            <rsweb:ReportViewer Width="100%" ID="ReportViewer1" runat="server" Visible="false" BackColor="White"
                Font-Names="Verdana" Font-Size="8pt" InteractiveDeviceInfos="(集合)" WaitMessageFont-Names="Verdana"
                WaitMessageFont-Size="14pt">
                <LocalReport ReportPath="Catering_Page\ShanShiFenXi\Report\Person_Avg_Xiaohao_Char.rdlc">
                </LocalReport>
            </rsweb:ReportViewer>
    </div>
    <asp:UpdatePanel runat="server" ID="up1" Visible="false">
    <ContentTemplate>
        <!--遮罩层-->
    <div id="divmain" class="bg" style="display:block">
    </div>
    <!--弹出层-->
    <div id="divup" class="center_div" style=" display:block; width: 700px; height: 460px; padding: 0px; left:25%; margin-top: -100px">
    <div id="container" style="width:600px; height:410px; margin: 0 auto"></div>
        <table width="100%">            
            <tr>
                <td align="center" class="close_imgbtn">
                    <a href="#" onclick='divhidel("divmain","divup")'>关闭</a>
                </td>
            </tr>
        </table>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
    
    </form>
</body>
</html>
